package com.ww.orm.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * @author sunnannan
 * @version 1.0
 * @date 2020/11/23 11:47 上午
 */
@Entity
@Table(name = "act_hi_varinst", schema = "aceace", catalog = "")
public class ActHiVarinstEntity {
    private String id;
    private String procInstId;
    private String executionId;
    private String taskId;
    private String name;
    private String varType;
    private Integer rev;
    private String bytearrayId;
    private java.lang.Double Double;
    private java.lang.Long Long;
    private String text;
    private String text2;
    private Timestamp createTime;
    private Timestamp lastUpdatedTime;

    @Id
    @Column(name = "ID_")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "PROC_INST_ID_")
    public String getProcInstId() {
        return procInstId;
    }

    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId;
    }

    @Basic
    @Column(name = "EXECUTION_ID_")
    public String getExecutionId() {
        return executionId;
    }

    public void setExecutionId(String executionId) {
        this.executionId = executionId;
    }

    @Basic
    @Column(name = "TASK_ID_")
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @Basic
    @Column(name = "NAME_")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "VAR_TYPE_")
    public String getVarType() {
        return varType;
    }

    public void setVarType(String varType) {
        this.varType = varType;
    }

    @Basic
    @Column(name = "REV_")
    public Integer getRev() {
        return rev;
    }

    public void setRev(Integer rev) {
        this.rev = rev;
    }

    @Basic
    @Column(name = "BYTEARRAY_ID_")
    public String getBytearrayId() {
        return bytearrayId;
    }

    public void setBytearrayId(String bytearrayId) {
        this.bytearrayId = bytearrayId;
    }

    @Basic
    @Column(name = "DOUBLE_")
    public java.lang.Double getDouble() {
        return Double;
    }

    public void setDouble(java.lang.Double aDouble) {
        Double = aDouble;
    }

    @Basic
    @Column(name = "LONG_")
    public java.lang.Long getLong() {
        return Long;
    }

    public void setLong(java.lang.Long aLong) {
        Long = aLong;
    }

    @Basic
    @Column(name = "TEXT_")
    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Basic
    @Column(name = "TEXT2_")
    public String getText2() {
        return text2;
    }

    public void setText2(String text2) {
        this.text2 = text2;
    }

    @Basic
    @Column(name = "CREATE_TIME_")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "LAST_UPDATED_TIME_")
    public Timestamp getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Timestamp lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ActHiVarinstEntity that = (ActHiVarinstEntity) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(procInstId, that.procInstId) &&
                Objects.equals(executionId, that.executionId) &&
                Objects.equals(taskId, that.taskId) &&
                Objects.equals(name, that.name) &&
                Objects.equals(varType, that.varType) &&
                Objects.equals(rev, that.rev) &&
                Objects.equals(bytearrayId, that.bytearrayId) &&
                Objects.equals(Double, that.Double) &&
                Objects.equals(Long, that.Long) &&
                Objects.equals(text, that.text) &&
                Objects.equals(text2, that.text2) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(lastUpdatedTime, that.lastUpdatedTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, procInstId, executionId, taskId, name, varType, rev, bytearrayId, Double, Long, text, text2, createTime, lastUpdatedTime);
    }
}
